package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 文琳
 * @Email 377979485@qq.com
 * @desc
 * @time 2022-09-03 星期六 13:08
 */
public class GamePlayer implements Parcelable {
    private String district;
    private String party;
    private String quality;
    private String pro;
    private String pro2;
    private String position;
    private String name;
    private String year;

    private int score;

    public GamePlayer(String district, String party, String quality, String pro, String pro2, String position, String name, String year) {
        this.district = district;
        this.party = party;
        this.quality = quality;
        this.pro = pro;
        this.pro2 = pro2;
        this.position = position;
        this.name = name;
        this.year = year;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getParty() {
        return party;
    }

    public void setParty(String party) {
        this.party = party;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public String getPro() {
        return pro;
    }

    public void setPro(String pro) {
        this.pro = pro;
    }

    public String getPro2() {
        return pro2;
    }

    public void setPro2(String pro2) {
        this.pro2 = pro2;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.district);
        dest.writeString(this.party);
        dest.writeString(this.quality);
        dest.writeString(this.pro);
        dest.writeString(this.pro2);
        dest.writeString(this.position);
        dest.writeString(this.name);
        dest.writeString(this.year);
        dest.writeInt(this.score);
    }

    protected GamePlayer(Parcel in) {
        this.district = in.readString();
        this.party = in.readString();
        this.quality = in.readString();
        this.pro = in.readString();
        this.pro2 = in.readString();
        this.position = in.readString();
        this.name = in.readString();
        this.year = in.readString();
        this.score = in.readInt();
    }

    public static final Creator<GamePlayer> CREATOR = new Creator<GamePlayer>() {
        @Override
        public GamePlayer createFromParcel(Parcel source) {
            return new GamePlayer(source);
        }

        @Override
        public GamePlayer[] newArray(int size) {
            return new GamePlayer[size];
        }
    };
}
